package com.github.bitsapling.sapling.entity;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户考核记录表：记录用户参与考核
 * </p>
 *
 */
public class Assessment implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;

    /**
     * 用户id
     */
    private String userId;

    /**
     * 规则id
     */
    private String ruleId;

    /**
     * 当前指标值
     */
    private Double currentValue;

    /**
     * 是否通过
     */
    private Integer isPassed;

    /**
     * 考核时间
     */
    private LocalDateTime assessedTime;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getRuleId() {
        return ruleId;
    }

    public void setRuleId(String ruleId) {
        this.ruleId = ruleId;
    }

    public Double getCurrentValue() {
        return currentValue;
    }

    public void setCurrentValue(Double currentValue) {
        this.currentValue = currentValue;
    }

    public Integer getIsPassed() {
        return isPassed;
    }

    public void setIsPassed(Integer isPassed) {
        this.isPassed = isPassed;
    }

    public LocalDateTime getAssessedTime() {
        return assessedTime;
    }

    public void setAssessedTime(LocalDateTime assessedTime) {
        this.assessedTime = assessedTime;
    }

    @Override
    public String toString() {
        return "Assessment{" +
        "id = " + id +
        ", userId = " + userId +
        ", ruleId = " + ruleId +
        ", currentValue = " + currentValue +
        ", isPassed = " + isPassed +
        ", assessedTime = " + assessedTime +
        "}";
    }
}
